package com.cooge.collection.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cooge.collection.dao.CollectionUrlDao;
import com.cooge.collection.pojo.CollectionUrl;
import com.cooge.collection.service.CollectionUrlService;
@Service
public class CollectionUrlServiceImpl implements CollectionUrlService {
	@Autowired
	CollectionUrlDao collectionUrlDao;
	@Override
	public CollectionUrl add(CollectionUrl collectionUrl) {
		
		return collectionUrlDao.save(collectionUrl);
		
	}
	@Override
	public List<CollectionUrl> findList() {
		
		return collectionUrlDao.getlist();
	}

}
